<%--
  Created by IntelliJ IDEA.
  User: Li
  Date: 2022/10/3
  Time: 22:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Demo02</title>
</head>
<body>

<%-- c:if 来完成判断，替换 java 的 if else --%>
<c:if test="true">
    <h1>true</h1>
</c:if>
<c:if test="false">
    <h1>false</h1>
</c:if>

<c:if test="${status == 1}">
    <h1>启用</h1>
</c:if>
<c:if test="${status == 0}">
    <h1>禁用</h1>
</c:if>
</body>
</html>
